package br.ufrgs.meetapp.enums;

/***
 * Message codes to be used by ByteMessage children classes
 * @author Benites
 *
 */
public enum MessageCode {
	ACK(0x00), 
	NACK(0xFF),
	IDENTIFICATION(0x01), 
	POSITION(0x02),
	SETTINGS(0x04),
	SETTINGS_REQUEST(0x14),
	SETTINGS_UPDATE(0x24);
			
	private int value;

	private MessageCode(int _value) {
		value = _value;
	}
	
	public int getCode(){
		return value;
	}
	
	public byte getByteCode() {
		return (byte)value;
	}
}
